---
sidebar_position: 100
---

# Analytics

You can track page views using **Microsoft Application Insights** in the deployed web site.
There are many other analytics platforms supported by Docusaurus through other [plugins](https://docusaurus.io/docs/next/api/plugins).

Insert your [application insights web configuration](https://github.com/microsoft/ApplicationInsights-JS#snippet-configuration-options) in the `docusaurus.config.js` file with, at least,
the `instrumentationKey`. **By default, cookies are disabled.**

```js title="./docusaurus.config.js"
...
const config = configure({ ... }, {
// highlight-start
    appInsights: {
        config: {
            instrumentationKey: "YOUR KEY HERE"
        }
        enableClickAnalytics: false,
    }
// highlight-end
})
```

## Options

The following options are available:

| Field | Type | Required | Default&nbsp;Value | Description |
| ----- | ---- | -------- | ------------- | ----------- |
| config | [ApplicationInsightsConfig](https://github.com/microsoft/docusaurus-plugins/blob/93e73418af086ae0cd821dc56c28b01f9515f7f2/packages/docusaurus-plugin-application-insights/src/options.ts#L10) | Yes | N/A | This object holds the configuration for Application Insights. It has many possible fields including `instrumentationKey`, `endpointUrl`, `maxBatchInterval`, etc. See [ApplicationInsights-JS Configuration](https://github.com/microsoft/ApplicationInsights-JS#configuration) for full details. |
| enableClickAnalytics | boolean | No | `false` | If set to `true`, enables click analytics. |



